package com.example.wastes.articles.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.wastes.articles.mapper.ArticlesMapper;
import com.example.wastes.articles.service.ArticlesService;
import com.example.wastes.common.pojo.Article;
import com.example.wastes.common.pojo.Articles;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ArticlesServiceImpl extends ServiceImpl<ArticlesMapper, Articles> implements ArticlesService {
    @Autowired
    private ArticlesMapper articlesMapper;
    @Override
    public List<Articles> findArticlesMerge(Integer id) {
        return articlesMapper.findArticlesMerge(id);
    }

    @Override
    public List<Articles> findArticlesMerge1(Integer id) {
        return articlesMapper.findArticlesMerge1(id);
    }

    @Override
    public List<Articles> findArticlesName(String articlename) {
        return articlesMapper.findArticlesName(articlename);
    }



    @Override
    public List<Articles> findAll() {
        return articlesMapper.findAll();
    }

    @Override
    public List<Articles> findName(String articlename) {
        return articlesMapper.findName(articlename);
    }
}
